home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games Extra 1996 September / Amiga Games Extra CD-ROM 9-1996.iso / userbox / publicdomain / vim-4.2 / doc / vim_idx.txt < prev    next >
Text File  |  1996-06-16  |  40KB  |  950 lines

  1. *vim_idx.txt*   For Vim version 4.2.  Last modification: 1996 June 16
  2.  
  3. This file contains a list of all commands for each mode, with a tag and a
  4. short description.  The list is sorted on ASCII value.
  5.  
  6. When looking for certain functionality use the search command.  For example,
  7. to look for deleting something, use: "/delete".
  8.  
  9.             Sections:
  10. |insert_index|     1. Insert mode
  11. |normal_index|     2. Normal mode
  12. |objects|        2.1. text objects
  13. |CTRL-W|        2.2. window commands
  14. |[|            2.3. Square bracket commands
  15. |g|            2.4. Commands starting with 'g'
  16. |visual_index|     3. Visual mode
  17. |ex_edit_index|     4. Command-line editing
  18. |ex_cmd_index|     5. EX commands
  19.  
  20. For an overview of options see vim_help.txt |option_list|.
  21. For a complete description of each option see vim_ref.txt |options|.
  22.  
  23.  
  24. 1. Insert mode                        *insert_index*
  25. ==============
  26.  
  27. tag        char        action
  28. -----------------------------------------------------------------------
  29. |i_CTRL-@|    CTRL-@        insert previously inserted text and stop
  30.                 insert
  31. |i_CTRL-A|    CTRL-A        insert previously inserted text
  32. |i_CTRL-B|    CTRL-B        Only if compiled with TOGGLE_REVINS (which is
  33.                 not the default): toggle 'revins' (backwards
  34.                 insert) option.
  35. |i_CTRL-C|    CTRL-C        quit insert mode, without checking for
  36.                 abbreviation.
  37. |i_CTRL-D|    CTRL-D        delete one shiftwidth of indent in the current
  38.                 line
  39. |i_CTRL-E|    CTRL-E        insert the character which is below the cursor
  40.         CTRL-F        not used
  41.         CTRL-G        not used
  42. |i_<BS>|    <BS>        delete character before the cursor
  43. |i_digraph|    {char1}<BS>{char2}
  44.                 enter digraph (only when 'digraph' option set)
  45. |i_CTRL-H|    CTRL-H        same as <BS>
  46. |i_<Tab>|    <Tab>        insert a <Tab> character
  47. |i_CTRL-I|    CTRL-I        same as <Tab>
  48. |i_<NL>|    <NL>        same as <CR>
  49. |i_CTRL-J|    CTRL-J        same as <CR>
  50. |i_CTRL-K|    CTRL-K {char1} {char2}
  51.                 enter digraph
  52.         CTRL-L        not used
  53. |i_<CR>|    <CR>        begin new line
  54. |i_CTRL-M|    CTRL-M        same as <CR>
  55. |i_CTRL-N|    CTRL-N        find next match for keyword in front of the
  56.                 cursor
  57. |i_CTRL-O|    CTRL-O        execute a single command and return to insert
  58.                 mode
  59. |i_CTRL-P|    CTRL-P        find previous match for keyword in front of
  60.                 the cursor
  61. |i_CTRL-Q|    CTRL-Q        same as CTRL-V (used for terminal control flow)
  62. |i_CTRL-R|    CTRL-R <0-9a-z"%:>
  63.                 insert contents of register <0-9a-z"%:>
  64.         CTRL-S        (used for terminal control flow)
  65. |i_CTRL-T|    CTRL-T        insert one shiftwidth of indent in current
  66.                 line
  67. |i_CTRL-U|    CTRL-U        delete all entered characters in the current
  68.                 line
  69. |i_CTRL-V|    CTRL-V {char}    insert next non-digit literally
  70. |i_CTRL-V_digit| CTRL-V {number} insert three digit decimal number as a single
  71.                 byte.
  72. |i_CTRL-W|    CTRL-W        delete word before the cursor
  73. |i_CTRL-X|    CTRL-X {mode}    enter CTRL-X sub mode, see below
  74. |i_CTRL-Y|    CTRL-Y        insert the character which is above the cursor
  75.         CTRL-Z        not used
  76. |i_<Esc>|    <Esc>        end insert mode
  77. |i_CTRL-[|    CTRL-[        same as <Esc>
  78.         CTRL-\        not used
  79.         CTRL-]        not used
  80.         CTRL-^        not used
  81. |i_CTRL-_|    CTRL-_        change languate (RIGHTLEFT)
  82.  
  83.         <Space> to '~'    not used, except '0' and '^' followed by
  84.                 CTRL-D
  85.  
  86. |i_0_CTRL-D|    0 CTRL-D    delete all indent in the current line
  87. |i_^_CTRL-D|    ^ CTRL-D    delete all indent in the current line, restore
  88.                 it in the next line
  89.  
  90. |i_<Del>|    <Del>        delete character under the cursor
  91.  
  92.         Meta characters (0x80 to 0xff, 128 to 255)
  93.                 not used
  94.  
  95. |i_<Down>|    <Down>        cursor one line down
  96. |i_<End>|    <End>        cursor past end of line
  97. |i_<C-End>|    <C-End>        cursor past end of file
  98. |i_<F1>|    <F1>        same as <Help>
  99. |i_<Help>|    <Help>        stop insert mode and display help window
  100. |i_<Home>|    <Home>        cursor to start of line
  101. |i_<C-Home>|    <C-Home>    cursor to start of file
  102. |i_<Insert>|    <Insert>    toggle Insert/Replace mode
  103. |i_<Left>|    <Left>        cursor one character left
  104. |i_<LeftMouse>|    <LeftMouse>    cursor at mouse click
  105. |i_<PageDown>|    <PageDown>    one screenfull forward
  106. |i_<PageUp>|    <PageUp>    one screenfull backward
  107. |i_<Right>|    <Right>        cursor one character right
  108. |i_<S-Down>|    <S-Down>    same as <PageDown>
  109. |i_<S-Left>|    <S-Left>    cursor one word left
  110. |i_<S-Right>|    <S-Right>    cursor one word right
  111. |i_<S-Up>|    <S-Up>        same as <PageUp>
  112. |i_<Up>|    <Up>        cursor one line up
  113.  
  114. commands in CTRL-X submode
  115.  
  116. |i_CTRL-X_CTRL-D|    CTRL-X CTRL-D    complete defined identifiers
  117. |i_CTRL-X_CTRL-E|    CTRL-X CTRL-E    scroll up
  118. |i_CTRL-X_CTRL-F|    CTRL-X CTRL-F    complete file names
  119. |i_CTRL-X_CTRL-I|    CTRL-X CTRL-I    complete identifiers
  120. |i_CTRL-X_CTRL-K|    CTRL-X CTRL-K    complete identifers from dictionary
  121. |i_CTRL-X_CTRL-L|    CTRL-X CTRL-L    complete whole lines
  122. |i_CTRL-X_CTRL-Y|    CTRL-X CTRL-Y    scroll down
  123. |i_CTRL-X_CTRL-]|    CTRL-X CTRL-]    complete tags
  124.  
  125.  
  126. 2. Normal mode                        *normal_index*
  127. ==============
  128.  
  129. CHAR     any non-blank chararacter
  130. WORD     any sequences of non-blank characters
  131. N     a number entered before the command
  132. {motion} a cursor movement command
  133. Nmove     the text that is moved over with a {motion}
  134. SECTION     a section that possibly starts with '}' instead of '{'
  135.  
  136. note: 1 = cursor movement command; 2 = can be undone/redone
  137.  
  138. tag        char          note action in Normal mode
  139. ------------------------------------------------------------------------------
  140.         CTRL-@           not used
  141. |CTRL-A|    CTRL-A        2  add N to number at/after cursor
  142. |CTRL-B|    CTRL-B        1  scroll N screens Backwards
  143. |CTRL-C|    CTRL-C           interrupt current (search) command
  144. |CTRL-D|    CTRL-D           scroll Down N lines (default: half a screen)
  145. |CTRL-E|    CTRL-E           scroll N lines upwards (N lines Extra)
  146. |CTRL-F|    CTRL-F        1  scroll N screens Forward
  147. |CTRL-G|    CTRL-G           display current file name and position
  148. |<BS>|        <BS>        1  same as "h"
  149. |CTRL-H|    CTRL-H        1  same as "h"
  150. |<Tab>|        <Tab>        1  go to N newer entry in jump list
  151. |CTRL-I|    CTRL-I        1  same as <Tab>
  152. |<NL>|        <NL>        1  same as "j"
  153. |CTRL-J|    CTRL-J        1  same as "j"
  154.         CTRL-K           not used
  155. |CTRL-L|    CTRL-L           redraw screen
  156. |<CR>|        <CR>        1  cursor to the first CHAR N lines lower
  157. |CTRL-M|    CTRL-M>        1  same as <CR>
  158. |CTRL-N|    CTRL-N        1  same as "j"
  159. |CTRL-O|    CTRL-O        1  go to N older entry in jump list
  160. |CTRL-P|    CTRL-P        1  cursor N lines upward
  161.         CTRL-Q           (used for terminal control flow)
  162. |CTRL-R|    CTRL-R        2  redo changes which were undone with 'u'
  163.         CTRL-S           (used for terminal control flow)
  164. |CTRL-T|    CTRL-T           jump to N older Tag in tag list
  165. |CTRL-U|    CTRL-U           scroll N lines Upwards (default: half a
  166.                    screen)
  167. |CTRL-V|    CTRL-V           start blockwise Visual
  168. |CTRL-W|    CTRL-W {char}       window commands, see |CTRL-W|
  169. |CTRL-X|    CTRL-X        2  subtract N from number at/after cursor
  170. |CTRL-Y|    CTRL-Y           scroll N lines downwards
  171. |CTRL-Z|    CTRL-Z           suspend program (or start new shell)
  172.         CTRL-[ <Esc>       not used
  173.         CTRL-\           not used
  174. |CTRL-]|    CTRL-]           :ta to ident under cursor
  175. |CTRL-^|    CTRL-^           edit Nth alternate file (equivalent to
  176.                    ":e #N")
  177.         CTRL-_           not used
  178.  
  179. |<Space>|    <Space>        1  same as "l"
  180. |!|        !{motion}{filter}
  181.                 2  filter Nmove text through the {filter}
  182.                    command
  183. |!!|        !!{filter}    2  filter N lines through the {filter} command
  184. |quote|        "<a-zA-Z0-9.%:-">  use buffer <a-zA-Z0-9.%:-"> for next
  185.                    delete, yank or put (upper case to append)
  186.                    (<.%:> only work with put)
  187. |#|        #        1  search backward for the Nth occurrence of
  188.                    the ident under the cursor
  189. |$|        $        1  cursor to the end of Nth next line
  190. |%|        %        1  find the next (curly/square) bracket on
  191.                    this line and go to its match, or go to
  192.                    matching comment bracket, or go to matching
  193.                    preprocessor directive.
  194. |N%|        {count}%    1  go to N percentage in the file
  195. |&|        &        2  repeat last :s
  196. |'|        '<a-zA-Z0-9>    1  cursor to the first CHAR on the line with
  197.                    mark <a-zA-Z0-9>
  198. |''|        ''        1  cursor to the first CHAR of the line where
  199.                    the cursor was before the latest jump.
  200. |'<|        '<        1  cursor to the first CHAR of the line where
  201.                    highlighted area starts/started
  202. |'>|        '>        1  cursor to the first CHAR of the line where
  203.                    highlighted area ends/ended
  204. |'[|        '[        1  cursor to the first CHAR on the line of the
  205.                    start of last operated text or start of
  206.                    putted text
  207. |']|        ']        1  cursor to the first CHAR on the line of the
  208.                    end of last operated text or end of putted
  209.                    text
  210. |(|        (        1  cursor N sentences backward
  211. |)|        )        1  cursor N sentences forward
  212. |star|        *        1  search forward for the Nth occurrence of
  213.                    the ident under the cursor
  214. |+|        +        1  cursor to the first CHAR N lines lower
  215. |,|        ,        1  repeat latest f, t, F or T in opposite
  216.                    direction N times
  217. |-|        -        1  cursor to the first CHAR N lines higher
  218. |.|        .        2  repeat last change with count replaced with
  219.                    N
  220. |/|        /{pattern}<CR>    1  search forward for the Nth occurrence of
  221.                    {pattern}
  222. |/<CR>|        /<CR>        1  search forward for {pattern} of last search
  223. |count|        0        1  cursor to the first char of the line
  224. |count|        1           prepend to command to give a count
  225. |count|        2            "
  226. |count|        3            "
  227. |count|        4            "
  228. |count|        5            "
  229. |count|        6            "
  230. |count|        7            "
  231. |count|        8            "
  232. |count|        9            "
  233. |:|        :           start entering an Ex command
  234. |N:|        {count}:       start entering an Ex command with range
  235.                    from current line to N lines down
  236. |;|        ;        1  repeat latest f, t, F or T N times
  237. |<|        <{motion}    2  shift Nmove lines one 'shiftwidth'
  238.                    leftwards
  239. |<<|        <<        2  shift N lines one 'shiftwidth' leftwards
  240. |=|        ={motion}    2  filter Nmove lines through "indent"
  241. |==|        ==        2  filter N lines through "indent"
  242. |>|        >{motion}    2  shift Nmove lines one 'shiftwidth'
  243.                    rightwards
  244. |>>|        >>        2  shift N lines one 'shiftwidth' rightwards
  245. |?|        ?<pattern><CR>    1  search backward for the Nth previous
  246.                    occurrence of <pattern>
  247. |?<CR>|        ?<CR>        1  search backward for {pattern} of last search
  248. |@|        @<a-z>        2  execute the contents of named buffer <a-z>
  249.                    N times
  250. |@:|        @:           repeat the previous ":" command N times
  251. |@@|        @@        2  repeat the previous @<a-z> N times
  252. |A|        A        2  append text at the end of the line N times
  253. |B|        B        1  cursor N WORDS backward
  254. |C|        ["x]C        2  change from the cursor position to the end
  255.                    of the line, and N-1 more lines [into
  256.                    buffer x]; synonym for "c$"
  257. |D|        ["x]D        2  delete the characters under the cursor
  258.                    until the end of the line and N-1 more
  259.                    lines [into buffer x]; synonym for "d$"
  260. |E|        E        1  cursor forward to the end of WORD N
  261. |F|        F{char}        1  cursor to the Nth occurrence of {char} to
  262.                    the left
  263. |G|        G        1  cursor to line N, default last line
  264. |H|        H        1  cursor to line N from top of screen
  265. |I|        I        2  insert text before the first CHAR on the
  266.                    line N times
  267. |J|        J        2  Join N lines; default is 2
  268. |K|        K           lookup Keyword under the cursor with
  269.                    'keywordprg'
  270. |L|        L        1  cursor to line N from bottom of screen
  271. |M|        M        1  cursor to middle line of screen
  272. |N|        N        1  repeat the latest '/' or '?' N times in
  273.                    opposite direction
  274. |O|        O        2  begin a new line above the cursor and
  275.                    insert text, repeat N times
  276. |P|        ["x]P        2  put the text [from buffer x] before the
  277.                    cursor N times
  278. |Q|        Q{motion}    2  format Nmove lines (obsolete)
  279. |R|        R        2  enter replace mode: overtype existing
  280.                    characters, repeat the entered text N-1
  281.                    times
  282. |S|        ["x]S        2  delete N lines [into buffer x] and start
  283.                    insert; synonym for "^cc" or "0cc",
  284.                    depending on autoindent
  285. |T|        T{char}        1  cursor till after Nth occurrence of {char}
  286.                    to the left
  287. |U|        U        2  undo all latest changes on one line
  288. |V|        V           start linewise Visual mode
  289. |W|        W        1  cursor N WORDS forward
  290. |X|        ["x]X        2  delete N characters before the cursor [into
  291.                    buffer x]
  292. |Y|        ["x]Y           yank N lines [into buffer x]; synonym for
  293.                    "yy"
  294. |ZZ|        ZZ           store current file if modified, and exit
  295. |[|        [{char}           square bracket command (see below)
  296.         \           not used
  297. |]|        ]{char}           square bracket command (see below)
  298. |^|        ^        1  cursor to the first CHAR of the line
  299. |_|        _        1  cursor to the first CHAR N - 1 lines lower
  300. |`|        `<a-zA-Z0-9>    1  cursor to the mark <a-zA-Z0-9>
  301. |`<|        `<        1  cursor to the start of the highlighted area
  302. |`>|        `>        1  cursor to the end of the highlighted area
  303. |`[|        `[        1  cursor to the start of last operated text
  304.                    or start of putted text
  305. |`]|        `]        1  cursor to the end of last operated text or
  306.                    end of putted text
  307. |``|        ``        1  cursor to the position before latest jump
  308. |a|        a        2  append text after the cursor N times
  309. |b|        b        1  cursor N words backward
  310. |c|        ["x]c{motion}    2  delete Nmove text [into buffer x] and start
  311.                    insert
  312. |cc|        ["x]cc        2  delete N lines [into buffer x] and start
  313.                    insert
  314. |d|        ["x]d{motion}    2  delete Nmove text [into buffer x]
  315. |dd|        ["x]dd        2  delete N lines [into buffer x]
  316. |e|        e        1  cursor forward to the end of word N
  317. |f|        f{char}        1  cursor to Nth occurrence of {char} to the
  318.                    right
  319. |g|        g{char}           extended commands, see below
  320. |h|        h        1  cursor N chars to the left
  321. |i|        i        2  insert text before the cursor N times
  322. |j|        j        1  cursor N lines downward
  323. |k|        k        1  cursor N lines upward
  324. |l|        l        1  cursor N chars to the right
  325. |m|        m<A-Za-z>       set mark <A-Za-z> at cursor position
  326. |n|        n        1  repeat the latest '/' or '?' N times
  327. |o|        o        2  begin a new line below the cursor and
  328.                    insert text, repeat N times
  329. |p|        ["x]p        2  put the text [from register x] after the
  330.                    cursor N times
  331. |q|        q<0-9a-zA-Z">       record typed characters into named register
  332.                    <0-9a-zA-Z"> (upper case to append)
  333. |q|        q           (while recording) stops recording
  334. |r|        r{char}        2  replace N chars with {char}
  335. |s|        ["x]s        2  (substitute) delete N characters [into
  336.                    buffer x] and start insert
  337. |t|        t{char}        1  cursor till before Nth occurrence of {char}
  338.                    to the right
  339. |u|        u        2  undo changes
  340. |v|        v           start characterwise Visual mode
  341. |w|        w        1  cursor N words forward
  342. |x|        ["x]x        2  delete N characters under and after the
  343.                    cursor [into buffer x]
  344. |y|        ["x]y{motion}       yank Nmove text [into buffer x]
  345. |yy|        ["x]yy           yank N lines [into buffer x]
  346. |z<CR>|        z<CR>              redraw, cursor line to top of window,
  347.                    cursor on first non-blank
  348. |zN<CR>|    z{height}<CR>       redraw, make window {height} lines high
  349. |z.|        z.           redraw, cursor line to center of window,
  350.                    cursor on first non-blank
  351. |z-|        z-           redraw, cursor line at bottom of window,
  352.                    cursor on first non-blank
  353. |zb|        zb           redraw, cursor line at bottom of window
  354. |ze|        ze           when 'wrap' off scroll horizontally to
  355.                    position the cursor at the end (right side)
  356.                    of the screen
  357. |zh|        zh           when 'wrap' off scroll screen N characters
  358.                    to the right
  359. |zl|        zl           when 'wrap' off scroll screen N characters
  360.                    to the left
  361. |zs|        zs           when 'wrap' off scroll horizontally to
  362.                    position the cursor at the start (left
  363.                    side) of the screen
  364. |zt|        zt           redraw, cursor line at top of window
  365. |zz|        zz           redraw, cursor line at center of window
  366. |z<Left>|    z<Left>           same as "zh"
  367. |z<Right>|    z<Right>       same as "zl"
  368. |{|        {        1  cursor N paragraphs backward
  369. |bar|        |        1  cursor to column N
  370. |}|        }        1  cursor N paragraphs forward
  371. |~|        ~        2  'tildeop' off: switch case of N characters
  372.                    under cursor and move the cursor N
  373.                    characters to the right
  374. |~|        ~{motion}       'tildeop' on: switch case of Nmove text
  375. |<C-LeftMouse>|    <C-LeftMouse>       ":ta" to the keyword at the mouse click
  376. |<C-RightMouse>|<C-RightMouse>     same as "CTRL-T"
  377. |<Del>|        ["x]<Del>    2  same as "x"
  378. |N<Del>|    {count}<Del>       remove the last digit from {count}
  379. |<Down>|    <Down>        1  same as "j"
  380. |<End>|        <End>        1  same as "$"
  381. |<C-End>|    <C-End>        1  same as "G"
  382. |<F1>|        <F1>           same as <Help>
  383. |<Help>|    <Help>           open a help window
  384. |<Home>|    <Home>        1  same as "0"
  385. |<C-Home>|    <C-Home>    1  same as "gg"
  386. |<Insert>|    <Insert>    2  same as "i"
  387. |<Left>|    <Left>        1  same as "h"
  388. |<LeftMouse>|    <LeftMouse>    1  move cursor to the mouse click position
  389. |<MiddleMouse>| <MiddleMouse>    2  same as "P" at the mouse click position
  390. |<PageDown>|    <PageDown>       same as CTRL-F
  391. |<PageUp>|    <PageUp>       same as CTRL-B
  392. |<Right>|    <Right>        1  same as "l"
  393. |<RightMouse>|    <RightMouse>       start Visual mode, move cursor to the mouse
  394.                    click position
  395. |<S-Down>|    <S-Down>    1  same as CTRL-F
  396. |<S-Left>|    <S-Left>    1  same as "b"
  397. |<S-LeftMouse>|    <S-LeftMouse>       same as "*" at the mouse click position
  398. |<S-Right>|    <S-Right>    1  same as "w"
  399. |<S-RightMouse>| <S-RightMouse>       same as "#" at the mouse click position
  400. |<S-Up>|    <S-Up>        1  same as CTRL-B
  401. |<Undo>|    <Undo>        2  same as "u"
  402. |<Up>|        <Up>        1  same as "k"
  403.  
  404.  
  405. 2.1 text objects                        *objects*
  406.  
  407. These can be used after an operator or in Visual mode to select an object
  408. |v_a|        a           a word (with white space)
  409. |v_A|        A           a WORD (with white space)
  410. |v_p|        p           a paragraph
  411. |v_s|        s           a sentence
  412. |v_P|        P           a block from "[{" to "]}"
  413. |v_S|        S           a block from "[(" and "])"
  414.  
  415.  
  416. 2.2 window commands                        *CTRL-W*
  417.  
  418. tag        command                 action in Normal mode
  419. ------------------------------------------------------------------------------
  420. |CTRL-W_CTRL-B|    CTRL-W CTRL-B       same as "CTRL-W b"
  421. |CTRL-W_CTRL-C|    CTRL-W CTRL-C       same as "CTRL-W c"
  422. |CTRL-W_CTRL-D|    CTRL-W CTRL-D       same as "CTRL-W d"
  423. |CTRL-W_CTRL-F|    CTRL-W CTRL-F       same as "CTRL-W f"
  424. |CTRL-W_CTRL-I|    CTRL-W CTRL-I       same as "CTRL-W i"
  425. |CTRL-W_CTRL-J|    CTRL-W CTRL-J       same as "CTRL-W j"
  426. |CTRL-W_CTRL-K|    CTRL-W CTRL-K       same as "CTRL-W k"
  427. |CTRL-W_CTRL-N|    CTRL-W CTRL-N       same as "CTRL-W n"
  428. |CTRL-W_CTRL-O|    CTRL-W CTRL-O       same as "CTRL-W o"
  429. |CTRL-W_CTRL-P|    CTRL-W CTRL-P       same as "CTRL-W p"
  430. |CTRL-W_CTRL-Q|    CTRL-W CTRL-Q       same as "CTRL-W q"
  431. |CTRL-W_CTRL-R|    CTRL-W CTRL-R       same as "CTRL-W r"
  432. |CTRL-W_CTRL-S|    CTRL-W CTRL-S       same as "CTRL-W s"
  433. |CTRL-W_CTRL-T|    CTRL-W CTRL-T       same as "CTRL-W t"
  434. |CTRL-W_CTRL-W|    CTRL-W CTRL-W       same as "CTRL-W w"
  435. |CTRL-W_CTRL-X|    CTRL-W CTRL-X       same as "CTRL-W x"
  436. |CTRL-W_CTRL-]|    CTRL-W CTRL-]       same as "CTRL-W ]"
  437. |CTRL-W_CTRL-^|    CTRL-W CTRL-^       same as "CTRL-W ^"
  438. |CTRL-W_CTRL-_|    CTRL-W CTRL-_       same as "CTRL-W _"
  439. |CTRL-W_+|    CTRL-W +       increase current window height N lines
  440. |CTRL-W_-|    CTRL-W -       decrease current window height N lines
  441. |CTRL-W_=|    CTRL-W =       make all windows the same height
  442. |CTRL-W_R|    CTRL-W R       rotate windows upwards N times
  443. |CTRL-W_S|    CTRL-W S       same as "CTRL-W s"
  444. |CTRL-W_W|    CTRL-W W       go to N previous window (wrap around)
  445. |CTRL-W_]|    CTRL-W ]       split window and jump to tag under cursor
  446. |CTRL-W_^|    CTRL-W ^       split current window and edit alternate
  447.                    file N
  448. |CTRL-W__|    CTRL-W _       set current window height to N (default:
  449.                    very high)
  450. |CTRL-W_b|    CTRL-W b       go to bottom window
  451. |CTRL-W_c|    CTRL-W c       close current window (like ":close")
  452. |CTRL-W_d|    CTRL-W d       split window and jump to definition under
  453.                    the cursor
  454. |CTRL-W_f|    CTRL-W f       split window and edit filename under the
  455.                    cursor
  456. |CTRL-W_i|    CTRL-W i       split window and jump to declaration of
  457.                    identifier under the cursor
  458. |CTRL-W_j|    CTRL-W j       go to N next window (stop at last window)
  459. |CTRL-W_k|    CTRL-W k       go to N previous window (stop at first
  460.                    window)
  461. |CTRL-W_n|    CTRL-W n       open new window, N lines high
  462. |CTRL-W_o|    CTRL-W o       close all but current window (like ":only")
  463. |CTRL-W_p|    CTRL-W p       go to previous (last accessed) window
  464. |CTRL-W_q|    CTRL-W q       quit current window (like ":quit")
  465. |CTRL-W_r|    CTRL-W r       rotate windows downwards N times
  466. |CTRL-W_s|    CTRL-W s       split current window in two parts, new
  467.                    window N lines high
  468. |CTRL-W_t|    CTRL-W t       go to top window
  469. |CTRL-W_w|    CTRL-W w       go to N next window (wrap around)
  470. |CTRL-W_x|    CTRL-W x       exchange current window with window N
  471.                    (default: next window)
  472. |CTRL-W_<Down>|    CTRL-W <Down>       same as "CTRL-W j"
  473. |CTRL-W_<Up>|    CTRL-W <Up>       same as "CTRL-W k"
  474.  
  475.  
  476. 2.3 Square bracket commands                    *[* *]*
  477.  
  478. tag        char          note action in Normal mode
  479. ------------------------------------------------------------------------------
  480. |[_CTRL-D|    [_CTRL-D       jump to first #define found in current and
  481.                    included files matching the word under the
  482.                    cursor, start searching at beginning of
  483.                    current file
  484. |[_CTRL-I|    [_CTRL-I       jump to first line in current and included
  485.                    files that contains the word under the
  486.                    cursor, start searching at beginning of
  487.                    current file
  488. |[#|        [#        1  cursor to N previous unmatched #if, #else
  489.                    or #ifdef
  490. |[(|        [(        1  cursor N times back to unmatched '('
  491. |[star|        [*        1  same as "[/"
  492. |[/|        [/        1  cursor to N previous start of a C comment
  493. |[D|        [D           list all defines found in current and
  494.                    included files matching the word under the
  495.                    cursor, start searching at beginning of
  496.                    current file
  497. |[I|        [I           list all lines found in current and
  498.                    included files that contain the word under
  499.                    the cursor, start searching at beginning of
  500.                    current file
  501. |[P|        [P        2  same as "[p"
  502. |[[|        [[        1  cursor N sections backward
  503. |[]|        []        1  cursor N SECTIONS backward
  504. |[d|        [d              show first #define found in current and
  505.                    included files matching the word under the
  506.                    cursor, start searching at beginning of
  507.                    current file
  508. |[f|        [f           same as "gf"
  509. |[i|        [i            show first line found in current and
  510.                    included files that contains the word under
  511.                    the cursor, start searching at beginning of
  512.                    current file
  513. |[p|        [p        2  like "P", but adjust indent to current line
  514. |[{|        [{        1  cursor N times back to unmatched '{'
  515. |[<MiddleMouse> [<MiddleMouse>    2  same as "[p"
  516.  
  517. |]_CTRL-D|    ]_CTRL-D       jump to first #define found in current and
  518.                    included files matching the word under the
  519.                    cursor, start searching at cursor position
  520. |]_CTRL-I|    ]_CTRL-I       jump to first line in current and included
  521.                    files that contains the word under the
  522.                    cursor, start searching at cursor position
  523. |]#|        ]#        1  cursor to N next unmatched #endif or #else
  524. |])|        ])        1  cursor N times forward to unmatched ')'
  525. |]star|        ]*        1  same as "]/"
  526. |]/|        ]/        1  cursor to N next end of a C comment
  527. |]D|        ]D           list all #defines found in current and
  528.                    included files matching the word under the
  529.                    cursor, start searching at cursor position
  530. |]I|        ]I           list all lines found in current and
  531.                    included files that contain the word under
  532.                    the cursor, start searching at cursor
  533.                    position
  534. |]P|        ]P        2  same as "[p"
  535. |][|        ][        1  cursor N SECTIONS forward
  536. |]]|        ]]        1  cursor N sections forward
  537. |]d|        ]d              show first #define found in current and
  538.                    included files matching the word under the
  539.                    cursor, start searching at cursor position
  540. |]f|        ]f           same as "gf"
  541. |]i|        ]i            show first line found in current and
  542.                    included files that contains the word under
  543.                    the cursor, start searching at cursor
  544.                    position
  545. |]p|        ]p        2  like "p", but adjust indent to current line
  546. |]}|        ]}        1  cursor N times forward to unmatched '}'
  547. |]<MiddleMouse> ]<MiddleMouse>    2  same as "]p"
  548.  
  549.  
  550. 2.4 Commands starting with 'g'                        *g*
  551.  
  552. tag        char          note action in Normal mode
  553. ------------------------------------------------------------------------------
  554. |g#|        g#        1  like "#", but without using "\<" and "\>"
  555. |g$|        g$        1  when 'wrap' off go to rightmost character of
  556.                    the current line that is on the screen;
  557.                    when 'wrap' on go to the rightmost character
  558.                    of the current screen line
  559. |gstar|        g*        1  like "*", but without using "\<" and "\>"
  560. |g0|        g0        1  when 'wrap' off go to leftmost character of
  561.                    the current line that is on the screen;
  562.                    when 'wrap' on go to the leftmost character
  563.                    of the current screen line
  564. |gD|        gD        1  goto definiton of word under the cursor in
  565.                    current file
  566. |gE|        gE        1  go backwards to the end of the previous
  567.                    WORD
  568. |gI|        gI        2  like "I", but always start in column 1
  569. |gU|        gU{motion}    2  make Nmove text uppercase
  570. |g^|        g^        1  when 'wrap' off go to leftmost non-white
  571.                    character of the current line that is on
  572.                    the screen; when 'wrap' on go to the
  573.                    leftmost non-white character of the current
  574.                    screen line
  575. |g_CTRL-G|    g_CTRL-G       show information about current cursor
  576.                    position
  577. |ga|        ga           print ascii value of character under the
  578.                    cursor
  579. |gd|        gd        1  goto definiton of word under the cursor in
  580.                    current function
  581. |ge|        ge        1  go backwards to the end of the previous
  582.                    word
  583. |gf|        gf           start editing the file whose name is under
  584.                    the cursor
  585. |gg|        gg        1  cursor to line N, default first line
  586. |gj|        gj        1  like "j", but when 'wrap' on go N screen
  587.                    lines down
  588. |gk|        gk        1  like "k", but when 'wrap' on go N screen
  589.                    lines up
  590. |gq|        gq{motion}    2  format Nmove text (same as "Q")
  591. |gs|        gs           goto sleep for N seconds (default 1)
  592. |gu|        gu{motion}    2  make Nmove text lowercase
  593. |gv|        gv           reselect the previous Visual area
  594. |g~|        g~{motion}    2  swap case for Nmove text
  595. |g<Down>|    g<Down>        1  same as "gj"
  596. |g<End>|    g<End>        1  same as "g$"
  597. |g<Home>|    g<Home>        1  same as "g0"
  598. |g<LeftMouse>|    g<LeftMouse>       same as <C-LeftMouse>
  599. |g<RightMouse>|    g<RightMouse>       same as <C-RightMouse>
  600. |g<Up>|        g<Up>        1  same as "gk"
  601.  
  602.  
  603. 3. Visual mode                        *visual_index*
  604. ==============
  605.  
  606. Most commands in Visual mode are the same as in Normal mode. The ones listed
  607. here are those that are different.
  608.  
  609. tag        command          note action in Visual mode
  610. ------------------------------------------------------------------------------
  611. |v_CTRL-V|    CTRL-V           make Visual mode blockwise or stop Visual
  612.                    mode
  613. |v_CTRL-]|    CTRL-]           jump to highlighted tag
  614. |v_!|        !{filter}    2  filter the highlighted lines through the
  615.                    external command {filter}
  616. |v_:|        :           start a command-line with the highlighted
  617.                    lines as a range
  618. |v_<|        <        2  shift the highlighted lines one
  619.                    'shiftwidth' left
  620. |v_=|        =        2  filter the highlighted lines through the
  621.                    external program given with the 'equalprg'
  622.                    option
  623. |v_>|        >        2  shift the highlighted lines one
  624.                    'shiftwidth' right
  625. |v_A|        A           extend the highlighted area with a WORD
  626. |v_C|        C        2  delete the highlighted lines and start
  627.                    insert
  628. |v_D|        D        2  delete the highlighted lines
  629. |v_J|        J        2  join the highlighted lines
  630. |v_K|        K           run 'keywordprg' on the highlighted text
  631. |v_P|        P           extend the highlighted text with a {} block
  632. |v_Q|        Q        2  format the highlighted lines (obsolete)
  633. |v_R|        R        2  delete the highlighted lines and start
  634.                    insert
  635. |v_S|        S           extend the highlighted text with a () block
  636. |v_U|        U        2  make highlighted text uppercase
  637. |v_V|        V           make Visual mode linewise or stop Visual
  638.                    mode
  639. |v_X|        X        2  delete the highlighted lines
  640. |v_Y|        Y           yank the highlighted lines
  641. |v_a|        a           extend the highlighted area with a word
  642. |v_c|        c        2  delete the highlighted text and start insert
  643. |v_d|        d        2  delete the highlighted text
  644. |v_gq|        gq        2  format the highlighted lines
  645. |v_gv|        gv           exchange current and previous highlighted
  646.                    text
  647. |v_o|        o           move cursor to other end of hightlighted
  648.                    text
  649. |v_p|        p           extend the highlighted area with a paragraph
  650. |v_r|        r        2  delete the highlighted text and start insert
  651. |v_s|        s           extend the highlighted area with a sentence
  652. |v_u|        u        2  make highlighted text lowercase
  653. |v_v|        v           make Visual mode characterwise or stop
  654.                    Visual mode
  655. |v_x|        x        2  delete the highlighted text
  656. |v_y|        y           yank the highlighted text
  657. |v_~|        ~        2  swap case for the highlighted text
  658.  
  659.  
  660. 4. Command-line editing                    *ex_edit_index*
  661. =======================
  662.  
  663. Get to the command-line with the ':', '!', '/' or '?' commands.
  664. Normal characters are inserted at the current cursor position.
  665. "Completion" below refers to context-sensitive completion.  It will complete
  666. filenames, tags, commands etc. as appropriate.
  667.  
  668.         CTRL-@        not used
  669. |c_CTRL-A|    CTRL-A        do completion on the pattern in front of the
  670.                 cursor and insert all matches
  671. |c_CTRL-B|    CTRL-B        cursor to begin of command-line
  672. |c_CTRL-C|    CTRL-C        same as <ESC>
  673. |c_CTRL-D|    CTRL-D        list completions that match the pattern in
  674.                 front of the cursor
  675. |c_CTRL-E|    CTRL-E        cursor to end of command-line
  676.         CTRL-F        not used
  677.         CTRL-G        not used
  678. |c_<BS>|    <BS>        delete the character in front of the cursor
  679. |c_digraph|    {char1} <BS> {char2}
  680.                 enter digraph when 'digraph' is on
  681. |c_CTRL-H|    CTRL-H        same as <BS>
  682. |c_<Tab>|    <Tab>        if 'wildchar' is <Tab>: Do completion on
  683.                 the pattern in front of the cursor
  684. |c_<S-Tab>|    <S-Tab>        same as CTRL-P
  685. |c_wildchar|    'wildchar'    Do completion on the pattern in front of the
  686.                 cursor (default: <Tab>)
  687. |c_CTRL-I|    CTRL-I        same as <Tab>
  688. |c_<NL>|    <NL>        same as <CR>
  689. |c_CTRL-J|    CTRL-J        same as <CR>
  690. |c_CTRL-K|    CTRL-K {char1} {char2}
  691.                 enter digraph
  692. |c_CTRL-L|    CTRL-L        do completion on the pattern in front of the
  693.                 cursor and insert the longest common part
  694. |c_<CR>|    <CR>        execute entered command
  695. |c_<CR>|    CTRL-M        same as <CR>
  696. |c_CTRL-N|    CTRL-N        after using 'wildchar' with multiple matches:
  697.                 go to next match, otherwise: same as <Down>
  698.         CTRL-O        not used
  699. |c_CTRL-P|    CTRL-P        after using 'wildchar' with multiple matches:
  700.                 go to previous match, otherwise: same as <Up>
  701. |c_CTRL-Q|    CTRL-Q        same as CTRL-V (used for terminal control flow)
  702. |c_CTRL-R|    CTRL-R <0-9a-z"%:>
  703.                 insert contents of register <0-9a-z"%:>
  704.         CTRL-S        (used for terminal control flow)
  705.         CTRL-T        not used
  706. |c_CTRL-U|    CTRL-U        remove all characters
  707. |c_CTRL-V|    CTRL-V        insert next non-digit literally, insert three
  708.                 digit decimal number as a single byte.
  709. |c_CTRL-W|    CTRL-W        delete the word in front of the cursor
  710.         CTRL-X        not used
  711.         CTRL-Y        not used
  712.         CTRL-Z        not used
  713. |c_<Esc>|    <Esc>        abandon command-line without executing it
  714. |c_<Esc>|    CTRL-[        same as <Esc>
  715.         CTRL-\        not used
  716.         CTRL-]        not used
  717.         CTRL-^        not used
  718. |c_CTRL-_|    CTRL-_        change languate (RIGHTLEFT)
  719. |c_<Del>|    <Del>        delete the character under the cursor
  720. |c_<Down>|    <Down>        recall next command-line from history that
  721.                 matches pattern in front of the cursor
  722. |c_<End>|    <End>        cursor to end of command-line
  723. |c_<Home>|    <Home>        cursor to start of command-line
  724. |c_<Insert>|    <Insert>    toggle insert/overstrike mode
  725. |c_<Left>|    <Left>        cursor left
  726. |c_<LeftMouse>|    <LeftMouse>    cursor at mouse click
  727. |c_<PageDown>|    <PageDown>    same as <S-Down>
  728. |c_<PageUp>|    <PageUp>    same as <S-Up>
  729. |c_<Right>|    <Right>        cursor right
  730. |c_<S-Down>|    <S-Down>    recall next command-line from history
  731. |c_<S-Left>|    <S-Left>    cursor one word left
  732. |c_<S-Right>|    <S-Right>    cursor one word right
  733. |c_<S-Up>|    <S-Up>        recall previous command-line from history
  734. |c_<Up>|    <Up>        recall previous command-line from history that
  735.                 matches pattern in front of the cursor
  736.  
  737.  
  738. 5. EX commands                        *ex_cmd_index*
  739. ==============
  740.  
  741. This is a brief listing of all the ":" commands, without mentioning any
  742. arguments.
  743.  
  744. |:!|        :!        filter lines or execute an external command
  745. |:!!|        :!!        repeat last ":!" command
  746. |:#|        :#        same as ":number"
  747. |:&|        :&        repeat last ":substitute"
  748. |:<|        :<        shift lines one 'shiftwidth' left
  749. |:=|        :=        print the cursor line number
  750. |:>|        :>        shift lines one 'shiftwidth' right
  751. |:@|        :@        execute contents of a register
  752. |:@@|        :@@        repeat the previous ":@"
  753. |:Next|        :N[ext]        go to previous file in the argument list
  754. |:append|    :a[ppend]    append text (not implemented)
  755. |:abbreviate|    :ab[breviate]    enter abbreviation
  756. |:abclear|    :abc[lear]    remove all abbreviations
  757. |:all|        :al[l]        open a window for each file in the argument
  758.                 list
  759. |:args|        :ar[gs]        print the argument list
  760. |:argument|    :argu[ment]    go to specific file in the argument list
  761. |:ascii|    :a[scii]    print ascii value of character under the
  762.                 cursor
  763. |:autocmd|    :au[tocmd]    enter or show autocommands
  764. |:buffer|    :b[uffer]    go to specific buffer in the buffer list
  765. |:bNext|    :bN[ext]    go to next buffer in the buffer list
  766. |:ball|        :ba[ll]        open a window for each file in the buffer list
  767. |:bdelete|    :bd[elete]    delete specific files from the buffer list
  768. |:blast|    :bl[ast]    go to last file in the buffer list
  769. |:bmodified|    :bm[odified]    go to next file in the buffer list that has
  770.                 been modified
  771. |:bnext|    :bn[ext]    go to next file in the buffer list
  772. |:bprevious|    :bp[revious]    go to previous file in the buffer list
  773. |:brewind|    :br[ewind]    go to last file in the buffer list
  774. |:buffers|    :buffers    list all files in the buffer list
  775. |:bunload|    :bun[load]    unload a specific buffer
  776. |:change|    :c[hange]    replace a line (not implemented)
  777. |:cNext|    :cN[ext]    go to previous error
  778. |:cabbrev|    :ca[bbrev]    like ":abbreviate" but for command-line mode
  779. |:cabclear|    :cabc[lear]    clear all abbreviations for command-line mode
  780. |:cc|        :cc        go to specific error
  781. |:cd|        :cd        change directory
  782. |:center|    :ce[nter]    format lines at the center
  783. |:cfile|    :cf[ile]    read the file with error messages
  784. |:chdir|    :chd[ir]    change directory
  785. |:checkpath|    :che[ckpath]    list included files
  786. |:clist|    :cl[ist]    list all errors
  787. |:close|    :clo[se]    close current window
  788. |:cmap|        :cm[ap]        like ":map" but for command-line mode
  789. |:cmapclear|    :cmapc[lear]    clear all mappings for command-line mode
  790. |:cnext|    :cn[ext]    go to next error
  791. |:cnoremap|    :cno[remap]    like ":noremap" but for command-line mode
  792. |:cnoreabbrev|    :cnorea[bbrev]    like ":noreabbrev" but for command-line mode
  793. |:copy|        :co[py]        copy lines
  794. |:cprevious|    :cp[revious]    go to previous error
  795. |:cquit|    :cq[uit]    quit Vim with an error code
  796. |:cunmap|    :cu[nmap]    like ":unmap" but for command-line mode
  797. |:cunabbrev|    :cuna[bbrev]    like ":unabbrev" but for command-line mode
  798. |:delete|    :d[elete]    delete lines
  799. |:display|    :di[splay]    display registers
  800. |:digraphs|    :dig[raphs]    show or enter digraphs
  801. |:djump|    :dj[ump]    jump to #define
  802. |:dlist|    :dl[ist]    list #defines
  803. |:doautocmd|    :do[autocmd]    apply autocommands
  804. |:dsearch|    :ds[earch]    list one #define
  805. |:dsplit|    :dsp[lit]    split window and jump to #define
  806. |:edit|        :e[dit]        edit a file
  807. |:ex|        :ex        same as ":edit"
  808. |:exit|        :exi[t]        same as ":xit"
  809. |:file|        :f[ile]        show or set the current file name
  810. |:files|    :files        list all files in the buffer list
  811. |:fixdel|    :fix[del]    set key code of <Del>
  812. |:global|    :g[lobal]    execute commands for matching lines
  813. |:gui|        :gu[i]        start the GUI
  814. |:gvim|        :gv[im]        start the GUI
  815. |:help|        :h[elp]        open a help window
  816. |:insert|    :i[nsert]    insert text (not implemented)
  817. |:iabbrev|    :ia[bbrev]    like ":abbrev" but for Insert mode
  818. |:iabclear|    :iabc[lear]    like ":abclear" but for Insert mode
  819. |:ijump|    :ij[ump]    jump to definition of identifier
  820. |:ilist|    :il[ist]    list lines where identifier matches
  821. |:imap|        :im[ap]        like ":map" but for Insert mode
  822. |:imapclear|    :imapc[lear]    like ":mapclear" but for Insert mode
  823. |:inoremap|    :ino[remap]    like ":noremap" but for Insert mode
  824. |:inoreabbrev|    :inorea[bbrev]    like ":noreabbrev" but for Insert mode
  825. |:isearch|    :is[earch]    list one line where identifier matches
  826. |:isplit|    :isp[lit]    split window and jump to definition of
  827.                 identifier
  828. |:iunmap|    :iu[nmap]    like ":unmap" but for Insert mode
  829. |:iunabbrev|    :iuna[bbrev]    like ":unabbrev" but for Insert mode
  830. |:join|        :j[oin]        join lines
  831. |:jumps|    :ju[mps]    print the jump list
  832. |:k|        :k        set a mark
  833. |:list|        :l[ist]        print lines
  834. |:last|        :la[st]        go to the last file in the argument list
  835. |:left|        :le[ft]        left align lines
  836. |:ls|        :ls        list all buffers
  837. |:move|        :m[ove]        move lines
  838. |:mark|        :ma[rk]        set a mark
  839. |:make|        :mak[e]        execute external command 'makeprg' and parse
  840.                 error messages
  841. |:map|        :map        show or enter a mapping
  842. |:mapclear|    :mapc[lear]    clear all mappings for Normal and Visual mode
  843. |:marks|    :marks        list all marks
  844. |:menu|        :me[nu]        enter a new menu item
  845. |:mkexrc|    :mk[exrc]    write current mappings and settings to a file
  846. |:mkvimrc|    :mkv[imrc]    write current mappings and settings to a file
  847. |:mode|        :mod[e]        show or change the screen mode
  848. |:next|        :n[ext]        go to next file in the argument list
  849. |:new|        :new        create a new empty window
  850. |:nmap|        :nm[ap]        like ":map" but for Normal mode
  851. |:nmapclear|    :nmapc[lear]    clear all mappings for Normal mode
  852. |:nnoremap|    :nn[oremap]    like ":noremap" but for Normal mode
  853. |:noremap|    :no[remap]    enter a mapping that will not be remapped
  854. |:noreabbrev|    :norea[bbrev]    enter an abbreviation that will not be
  855.                 remapped
  856. |:normal|    :norm[al]    execute Normal mode commands
  857. |:number|    :nu[mber]    print lines with line number
  858. |:nunmap|    :nun[map]    like ":unmap" but for Normal mode
  859. |:open|        :o[pen]        start open mode (not implemented)
  860. |:only|        :on[ly]        close all windows except current one
  861. |:print|    :p[rint]    print lines
  862. |:pop|        :po[p]        jump to older entry in tag stack
  863. |:preserve|    :pre[serve]    write all text to swap file
  864. |:previous|    :prev[ious]    go to previous file in argument list
  865. |:put|        :pu[t]        insert contents of register in the text
  866. |:pwd|        :pw[d]        print current directory
  867. |:quit|        :q[uit]        quit current window or Vim
  868. |:qall|        :qa[ll]        quit Vim
  869. |:read|        :r[ead]        read file into the text
  870. |:recover|    :rec[over]    recover a file from a swap file
  871. |:redo|        :red[o]        redo one undone change
  872. |:registers|    :reg[isters]    display the contents of registers
  873. |:resize|    :res[ize]    change current window height
  874. |:retab|    :ret[ab]    change tab size
  875. |:rewind|    :rew[ind]    go to the first file in the argument list
  876. |:right|    :ri[ght]    right align text
  877. |:rviminfo|    :rv[iminfo]    read from viminfo file
  878. |:substitute|    :s[ubstitute]    find and replace text
  879. |:sNext|    :sN[ext]    split window and go to previous file in
  880.                 argument list
  881. |:sargument|    :sa[rgument]    split window and go to specific file in
  882.                 argument list
  883. |:sall|        :sal[l]        open a window for each file in argument list
  884. |:sbuffer|    :sb[uffer]    split window and go to specific file in the
  885.                 buffer list
  886. |:sbNext|    :sbN[ext]    split window and go to previous file in the
  887.                 buffer list
  888. |:sball|    :sba[ll]    open a window for each file in the buffer list
  889. |:sblast|    :sbl[ast]    split window and go to last file in buffer
  890.                 list
  891. |:sbmodified|    :sbm[odified]    split window and go to modified file in the
  892.                 buffer list
  893. |:sbnext|    :sbn[ext]    split window and go to next file in the buffer
  894.                 list
  895. |:sbprevious|    :sbp[revious]    split window and go to previous file in the
  896.                 buffer list
  897. |:sbrewind|    :sbr[ewind]    split window and go to first file in the
  898.                 buffer list
  899. |:set|        :se[t]        show or set options
  900. |:shell|    :sh[ell]    escape to a shell
  901. |:sleep|    :sl[eep]    do nothing for a few seconds
  902. |:slast|    :sla[st]    split window and go to last file in the
  903.                 argument list
  904. |:snext|    :sn[ext]    split window and go to next file in the
  905.                 argument list
  906. |:source|    :so[urce]    read Vim or Ex commands from a file
  907. |:split|    :sp[lit]    split current window
  908. |:sprevious|    :spr[evious]    split window and go to previous file in the
  909.                 argument list
  910. |:srewind|    :sr[ewind]    split window and go to first file in the
  911.                 argument list
  912. |:stop|        :st[op]        suspend the editor or escape to a shell
  913. |:stag|        :sta[g]        split window and jump to a tag
  914. |:sunhide|    :sun[hide]    same as ":unhide"
  915. |:suspend|    :sus[pend]    same as ":stop"
  916. |:sview|    :sv[iew]    split window and edit file read-only
  917. |:swapname|    :sw[apname]    show the name of the current swap file
  918. |:t|        :t        same as ":copy"
  919. |:tag|        :ta[g]        jump to tag
  920. |:tags|        :tags        show the contents of the tag stack
  921. |:undo|        :u[ndo]        undo last change(s)
  922. |:unabbreviate|    :una[bbreviate]    remove abbreviation
  923. |:unhide|    :unh[ide]    open a window for each loaded file in the
  924.                 buffer list
  925. |:unmap|    :unm[ap]    remove mapping
  926. |:version|    :ve[rsion]    print version number and other info
  927. |:vglobal|    :v[global]    execute commands for not matching lines
  928. |:visual|    :vi[sual]    same as ":edit"
  929. |:view|        :vie[w]        edit a file read-only
  930. |:vmap|        :vm[ap]        like ":map" but for Visual mode
  931. |:vmapclear|    :vmapc[lear]    remove all mappings for Visual mode
  932. |:vnoremap|    :vn[oremap]    like ":noremap" but for Visual mode
  933. |:vunmap|    :vu[nmap]    like ":unmap" but for Visual mode
  934. |:write|    :w[rite]    write to a file
  935. |:wNext|    :wN[ext]    write to a file and go to previous file in
  936.                 argument list
  937. |:wall|        :wa[ll]        write all (changed) buffers
  938. |:wnext|    :wn[ext]    write to a file and go to next file in
  939.                 argument list
  940. |:wprevious|    :wp[revious]    write to a file and go to previous file in
  941.                 argument list
  942. |:wq|        :wq        write to a file and quit window or Vim
  943. |:wqall|    :wqa[ll]    write all changed buffers and quit Vim
  944. |:wviminfo|    :wv[iminfo]    write to viminfo file
  945. |:xit|        :x[it]        write if buffer changed and quit window or Vim
  946. |:xall|        :xa[ll]        same as ":wqall"
  947. |:yank|        :y[ank]        yank lines into a register
  948. |:z|        :z        print some lines (not implemented)
  949. |:~|        :~        repeat last ":substitute"
  950.